package com.example.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("cart")
public class Cart implements Serializable {
    @TableId(value ="cid",type = IdType.AUTO)

    private int uid;
    private int pid;
    private int amount;
    private int cid;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "uid=" + uid +
                ", pid=" + pid +
                ", amount=" + amount +
                ", cid=" + cid +
                '}';
    }
}
